/****************************************************************************
**
** This file is part of qPhotoTag, a photo keywording application
**
** Copyright (C) 2009 Marcell Lengyel <miketkf@gmail.com>
**
** GNU General Public License
** This program is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License
** as published by the Free Software Foundation; either version 2
** of the License, or (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
**
****************************************************************************/

#ifndef PICTUREPREVIEWDIALOG_H
#define PICTUREPREVIEWDIALOG_H

/*! \file picturepreviewdialog.h
    \brief Contains the declaration of the PicturePreviewDialog class

    The PicturePreviewDialog class is a QDialog subclass and it
    is used for displaying scaled down photos in a separated dialog window.
 */
#include <QtGui>
#include <QDialog>

// Maximum size in pixels for the longest side of the picture to be scaled to.
#define MAX_PICTURE_SIZE 1024

//! A dialog for displaying pictures
/*!
  This dialog is used for displaying pictures. The pictures are resized
  with keeping the original aspect ratio and the longest side will be
  1024 pixel.
 */
class PicturePreviewDialog : public QDialog
{
    Q_OBJECT
public:
    //! Constructor
    /*!
      The constructor for the PicturePreviewDialog. It handles the resizing of the picture,
      sets the dialog to non-resizable and non-modal.
      \param parent a QWidget pointer to the parent object
      \param filename a constant QString with the full path to the picture file to display
     */
    PicturePreviewDialog(QWidget *parent = 0, const QString &filename = 0);

};

#endif // PICTUREPREVIEWDIALOG_H
